Repository navigation
Pack hybrid training jobs and add robust expectiles and typed arithmetic - #53
Merged
Merged
Conversation
…ed control arithmetic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Result
OpenQML 0.27.0 adds submission-aware hybrid training, coherent expectile risk and a broader typed classical-expression compiler without new core dependencies.
ShiftPlan.linearizepacks primal readouts and occurrence-wise derivative recipes into bounded backend batches. Its ownedShiftLinearizationsupports JVP/VJP reuse with explicit circuit and submission counts. Torch/JAX/Flax quantum layers opt in withgradient_method="batched-shift"; broadcast gradients reduce correctly to shared inputs/weights. Undefined selected derivatives and owned working-memory limits are checked before submission.TrainingWorkload.joint_primal_gradientprices the combined phase while preserving sequential optimizer steps, microbatches and provider limits.finance.expectile,wasserstein_expectileandexpectile_budget_projectionretain native gradients through quantum scenario probabilities, contextual radii and anisotropic transport geometry. Sorted piecewise-affine roots avoid iterative differentiation; normalized coefficients preserve tiny contributing losses beside zero-mass extreme atoms. The funded cash-ray scale remains maximal, with a distinctExpectileBudgetResult.Basis and scope
Job packing follows Training quantum neural networks one job at a time, excluding its sinusoid-search optimizer and hardware performance claims. A full stencil is one backend submission only when chunk/provider limits admit it. The opt-in linearization trades O(batch × readouts × parameters) memory for fewer round trips; the default streamed derivative path is preserved. External higher quantum derivatives remain explicitly unsupported.
The robust expectile specializes the envelope mechanism in Multi-period Mean-Expectile Portfolio Optimization under Wasserstein Ambiguity to a one-period unrestricted-support W1 ball. Fixed-mean constraints and the paper's multi-period optimization programs are excluded. Radius/metric calibration and chronological financial evaluation remain caller responsibilities.
Typed operations follow Qiskit's classical API; callback behavior follows JAX's I/O contract. Division, signed/float arithmetic, mutable storage and unproven selector ranges retain diagnostics.
Validation